package com.das.mechanic_base.init;

import android.app.Application;

import com.das.mechanic_base.app.IAloneEventCallback;
import com.das.mechanic_base.app.X3MyApp;

/**
 * 初始化类
 */
public class AutoX3SDK {

    public static void init(Application application) {
        X3MyApp.getInstance().init(application);
    }

    public static void startHealthCheck(long workOrderId, long serviceOrderId, IAloneEventCallback iAloneEventCallback) {
        X3MyApp.getInstance().startAlone(workOrderId,serviceOrderId,iAloneEventCallback);
    }

    public static void startWorkOrder(long workOrderId, long serviceOrderId, IAloneEventCallback iAloneEventCallback) {
        X3MyApp.getInstance().startWork(workOrderId,serviceOrderId,iAloneEventCallback);
    }

    public static void jumpVehicleReceiptList(IAloneEventCallback iAloneEventCallback) {
        X3MyApp.getInstance().startServiceOrderList(iAloneEventCallback);
    }

    public static void createVehicleReceipt(IAloneEventCallback iAloneEventCallback) {
        X3MyApp.getInstance().startCreateServiceOrder(iAloneEventCallback);
    }

    public static void startVehicleReport(String reportUrl) {
        X3MyApp.getInstance().startVehicleReport(reportUrl);
    }

    public static void login(String accessKey,String openUrl) {
        X3MyApp.getInstance().loginSync(accessKey,openUrl);
    }


}
